<?php
class MaterialExpenseAttachExternal extends CFormModel {
	public $externalTokenDate;
	public $externalTokenNumber;
	public $materialExpenseIds;
	
	public function rules() {
		return array(
			array(
				'externalTokenDate,externalTokenNumber',
				'required'
			),
			array(
				'externalTokenDate',
				'date',
				'format' => 'yyyy-MM-dd',
			),
			array(
				'externalTokenNumber',
				'numerical',
				'integerOnly' => true
			),
			array(
				'materialExpenseIds',
				'type',
				'type' => 'array'
			),
		);
	}
	
	public function attributeLabels() {
		return array(
			'externalTokenDate' => '外部凭证日期',
			'externalTokenNumber' => '外部凭证号',
			'materialExpenseIds' => '包含报销单'
		);
	}
}